package ch0300;

public class Teacher extends Person implements Driver{
	private String majorField;

	public String getMajorField() {
		return majorField;
	}

	public void setMajorField(String majorField) {

		this.majorField = majorField;

	}
	public Teacher() {

		majorField = ".NET方向";
	}

	public Teacher(int a,char g) {
	}

	//重写
	
	
	  public void print() {
	  super.print();
	  System.out.println("执行Teacher类中的print()方法"); }
	 
	  public void doSomething() {
		  System.out.println("老师认真授课");
	  }

	@Override
	public void getLicence() {
		// TODO 自动生成的方法存根
		System.out.println("我是 老师，我有驾照");
	};
	 
}
